package org.hxyjs.dao;

import org.hxyjs.entity.Costtype;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface CosttypeDao {
    public List<Costtype>  getAllCosttypes()  throws Exception;
    public Costtype  getCosttypeByCono(String cono)  throws Exception;
    public List<Costtype> getCosttypesByPage(PageInfo pageInfo);
    //增删改的返回值都是整数
    Integer deleteCosttypeByCono(String cono)  throws Exception;
    Integer updateCosttypeByCono(Costtype costtype)  throws Exception;
    Integer addCosttype(Costtype costtype)  throws Exception;

}
